package entity;

import java.util.List;

public class Goods {
	
	private int goodId;    //商品Id
	private String goodName = "";   //商品名称
	private double goodPrice = 0;   //商品价格
	private String goodInfo = "";
	private int shopId;
	private int stock = 0;
	private GoodsClass goodClass;
	private String goodStatus;
	private String goodDesc;
	private List<GoodsLabel> goodsLabel;
	private List<GoodsImg> goodsImg;
	
	public int getGoodId() {
		return goodId;
	}
	public void setGoodId(int goodId) {
		this.goodId = goodId;
	}
	public String getGoodName() {
		return goodName;
	}
	public void setGoodName(String goodName) {
		this.goodName = goodName;
	}
	public double getGoodPrice() {
		return goodPrice;
	}
	public void setGoodPrice(double goodPrice) {
		this.goodPrice = goodPrice;
	}
	public String getGoodInfo() {
		return goodInfo;
	}
	public void setGoodInfo(String goodInfo) {
		this.goodInfo = goodInfo;
	}
	public int getShopId() {
		return shopId;
	}
	public void setShopId(int shopId) {
		this.shopId = shopId;
	}
	public int getStock() {
		return stock;
	}
	public void setStock(int stock) {
		this.stock = stock;
	}
	public GoodsClass getGoodClass() {
		return goodClass;
	}
	public void setGoodClass(GoodsClass goodClass) {
		this.goodClass = goodClass;
	}
	public String getGoodStatus() {
		return goodStatus;
	}
	public void setGoodStatus(String goodStatus) {
		this.goodStatus = goodStatus;
	}
	public String getGoodDesc() {
		return goodDesc;
	}
	public void setGoodDesc(String goodDesc) {
		this.goodDesc = goodDesc;
	}
	public List<GoodsLabel> getGoodsLabel() {
		return goodsLabel;
	}
	public void setGoodsLabel(List<GoodsLabel> goodsLabel) {
		this.goodsLabel = goodsLabel;
	}
	public List<GoodsImg> getGoodsImg() {
		return goodsImg;
	}
	public void setGoodsImg(List<GoodsImg> goodsImg) {
		this.goodsImg = goodsImg;
	}
	public Goods(int goodId, String goodName, double goodPrice, String goodInfo, int shopId, int stock,
			GoodsClass goodClass, String goodStatus, String goodDesc, List<GoodsLabel> goodsLabel,
			List<GoodsImg> goodsImg) {
		super();
		this.goodId = goodId;
		this.goodName = goodName;
		this.goodPrice = goodPrice;
		this.goodInfo = goodInfo;
		this.shopId = shopId;
		this.stock = stock;
		this.goodClass = goodClass;
		this.goodStatus = goodStatus;
		this.goodDesc = goodDesc;
		this.goodsLabel = goodsLabel;
		this.goodsImg = goodsImg;
	}
	public Goods() {
		super();
	}
	public Goods(String goodName, double goodPrice, String goodInfo, int shopId, int stock, GoodsClass goodClass,
			String goodDesc) {
		super();
		this.goodName = goodName;
		this.goodPrice = goodPrice;
		this.goodInfo = goodInfo;
		this.shopId = shopId;
		this.stock = stock;
		this.goodClass = goodClass;
		this.goodDesc = goodDesc;
	}
	public Goods(String goodName, double goodPrice, String goodInfo, int shopId, int stock, GoodsClass goodClass,
			String goodDesc, List<GoodsLabel> goodsLabel) {
		super();
		this.goodName = goodName;
		this.goodPrice = goodPrice;
		this.goodInfo = goodInfo;
		this.shopId = shopId;
		this.stock = stock;
		this.goodClass = goodClass;
		this.goodDesc = goodDesc;
		this.goodsLabel = goodsLabel;
	}
	
	public Goods(int goodId, String goodName, double goodPrice, String goodInfo, int shopId, int stock
			) {
			super();
			this.goodId = goodId;
			this.goodName = goodName;
			this.goodPrice = goodPrice;
			this.goodInfo = goodInfo;
			this.shopId = shopId;
			this.stock = stock;
	}
	public Goods(int goodId, String goodName) {
		super();
		this.goodId = goodId;
		this.goodName = goodName;
	}
	public Goods(int goodId, String goodName, double goodPrice, String goodInfo, List<GoodsImg> goodsImg) {
		super();
		this.goodId = goodId;
		this.goodName = goodName;
		this.goodPrice = goodPrice;
		this.goodInfo = goodInfo;
		this.goodsImg = goodsImg;
	}
	
	public Goods(int goodId) {
		super();
		this.goodId = goodId;
	}
	@Override
	public String toString() {
		return "Goods [goodId=" + goodId + ", goodName=" + goodName + ", goodPrice=" + goodPrice + ", goodInfo="
				+ goodInfo + ", shopId=" + shopId + ", stock=" + stock + ", goodClass=" + goodClass + ", goodStatus="
				+ goodStatus + ", goodDesc=" + goodDesc + ", goodsLabel=" + goodsLabel + ", goodsImg=" + goodsImg + "]";
	}
	
	
}
